// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   yr.java

package com.zelix;

import java.io.*;
import java.util.Vector;

// Referenced classes of package com.zelix:
//            it, z2, mt, bs, 
//            gs, bx, yu, f2, 
//            a2, nh, yw, qr

final class yr
    implements Runnable
{

    private final nh a;
    private final yw b;
    private final Vector c;
    private final qr d;
    private final z2 e;
    private final bs f;
    private final bx g;
    private static String z[];

    yr(nh nh, bs bs1, Vector vector, bx bx1, z2 z2_1, yw yw, qr qr)
    {
        a = nh;
        f = bs1;
        c = vector;
        g = bx1;
        e = z2_1;
        b = yw;
        d = qr;
    }

    public void run()
    {
        PrintWriter printwriter = null;
        try
        {
            printwriter = new PrintWriter(new FileWriter(z[1]));
        }
        catch(IOException ioexception)
        {
            if(g != null)
                g.a(false, null);
            f.b(z[0], z[6] + ioexception.getClass().getName());
        }
        z2.a(e).a(d, c, null, null, null, printwriter, f, b, g, a);
        z2.f(e).c();
        mt mt1 = (mt)z2.g(e).h();
        if(mt1 != null)
            mt1.ob();
        if(printwriter != null)
            printwriter.close();
        BufferedReader bufferedreader = null;
        try
        {
            bufferedreader = new BufferedReader(new FileReader(z[1]));
            bufferedreader.mark(1);
            if(bufferedreader.read() != -1)
            {
                bufferedreader.reset();
                new a2(e, z[2], z[4], bufferedreader, false, true, false);
            }
        }
        catch(FileNotFoundException _ex) { }
        catch(IOException ioexception1)
        {
            new f2(e, z[5], z[3] + ioexception1.getClass().getName());
        }
        finally
        {
            if(bufferedreader != null)
                try
                {
                    bufferedreader.close();
                }
                catch(IOException _ex) { }
        }
        if(g != null)
            g.a();
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x42;
                    break;
                case 1:
                    key =118;
                    break;
                case 2:
                    key =118;
                    break;
                case 3:
                    key =94;
                    break;
                default:
                    key =89;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[7];
        as[0] = "\007$$\021\013x";
        as[1] = "\030=;\001\r0\037\033\0226%X\002&-";
        as[2] = "\026\004\0373y0\023\0061+6";
        as[3] = "\007\004\0041+b\004\023?=+\030\021~\003\t;)\n++\033:1>l\002\016*yxV";
        as[4] = "\026\004\0373y\020\023\0061+6V^\004\022\017)\",0/:\0319w6\016\002wwlX";
        as[5] = "\007\004\0041+";
        as[6] = "\001\031\0032=,Q\002~62\023\030~\003\t;)\n++\033:1>l\002\016*yxV";
        for(int i = 0;i<as.length;i++){
            z(as[i].toCharArray());
        }
        z = as;
    }
}
